package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseMapper<T> {
    void save(T t);

    void update(T t);

    void remove(Long id);

    void batchDelete(List<Long> ids);

    List<T> loadAll();

    T loadById(Long id);

    Integer queryCount(BaseQuery query);

    List<T> queryData(BaseQuery query);
}
